package com.example.plan.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.awt.*;

import java.io.Serializable;

/**
 * 用户地址表
 * @TableName user_address
 */
@TableName(value = "user_address")
@Data
public class UserAddress implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 地址ID
     */
    @TableId(value = "address_id", type = IdType.ASSIGN_ID)
    private Long address_id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long user_id;

    /**
     * 收货人姓名
     */
    @TableField(value = "recipient_name")
    private String recipient_name;

    /**
     * 收货人电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 详细收货地址
     */
    @TableField(value = "detail_address")
    private String detail_address;

    /**
     * 是否默认地址
     */
    @TableField(value = "is_default")
    private Integer is_default;

    /**
     * 坐标信息
     */
    @TableField(value = "coordinates")
    private String coordinates;
}